<?php
/*******************************************************************************
 * $Date:: Jan 7, 2011 8:50:48 PM                                              $
 * $Revision:                                                                  $
 * $Author:: Tuan Duong                                                        $
 * $Comment::                                                                  $
 ******************************************************************************/ 
/**
 * Description here...
 * 
 * @package Lua
 * @subpackage Config
 * @author Tuan Duong <bacduong[at]gmail[dot]com>
 * @version 
 */

class Lua_Registry
{
    private static $configs = array();

    /**
     * Constructor of Lua_Registry
     *
     * @return void
     */
    private function __construct()
    {
        // Singleton
    }

    /**
     * Gets a configuration setting.
     *
     * @param string $name
     * @return mixed
     */
    public static function get($name) {
        if (isset(self::$configs[$name])) {
            return self::$configs[$name];
        }
        return NULL;
    }

    /**
     * Sets a configuration setting.
     *
     * @param string $name
     * @param mixed $value
     */
    public static function set($name, $value) {
        self::$configs[$name] = $value;
    }

    public static function dump()
    {
        Zend_Debug::dump(self::$configs);
    }
}